package com.weiyuwqj.app.mobile.activity;

import com.weiyuwqj.api.service.SysPictureService;
import com.weiyuwqj.api.common.Paginator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zhangyong on 2016/9/22.
 */
@Controller
@RequestMapping(value = "/mobile/activity")
public class MobileActivityController {

    @Autowired
    private SysPictureService pictureService;

    //活动中心列表
    @ResponseBody
    @RequestMapping("/list")
    public Object list(Paginator p){
        return pictureService.getListByActivity(p);
    }
}
